﻿using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Navigation;

namespace SpecFlowTfsLinkerAddIn
{
    public partial class UserStorySelectorException : Window
    {
        public readonly Exception Exception;

        public UserStorySelectorException(Exception exception)
        {
            InitializeComponent();
            Exception = exception;
            DataContext = Exception;
        }

        private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
        {
            Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
            e.Handled = true;
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}